home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / networks / tpapi / nwsynch.doc < prev    next >
Text File  |  1992-01-28  |  6KB  |  127 lines

  1.                            SYNCHRONIZATION SERVICES
  2.                            ========================
  3.  
  4.  
  5. ClearFile (FileName : PathNameType) : WORD;
  6.  
  7.   Unlocks the specified file and removes it from the log table of the
  8.   requesting workstation.
  9. --------------------------------------------------------------------------------
  10. ClearFileSet
  11.  
  12.   Unlocks and removes all files in the log table of the requesting workstation.
  13. --------------------------------------------------------------------------------
  14. ClearLogicalRecord (LogicalRecordName : LogicalRecordNameType) : WORD;
  15.  
  16.   Unlocks a logical records and removes them from the log table of the
  17.   requesting workstation.
  18. --------------------------------------------------------------------------------
  19. ClearLogicalRecordSet
  20.  
  21.   Unlocks all logical records in the log table of the requesting workstation
  22.   and removes them from the log table.
  23. --------------------------------------------------------------------------------
  24. ClearPhysicalRecord (FileHandle : WORD; RecordOffset,
  25.                      RecordLength : LONGINT) : WORD;
  26.  
  27.   Unlocks a Physical record and removes them from the log table of the
  28.   requesting workstation.
  29. --------------------------------------------------------------------------------
  30. ClearPhysicalRecordSet
  31.  
  32.   Unlocks all physical records in the log table of the requesting workstation
  33.   and removes them from the log table.
  34. --------------------------------------------------------------------------------
  35. CloseSemaphore (SemaphoreHandle : LONGINT) : WORD;
  36.  
  37.   Closes a semaphore.
  38. --------------------------------------------------------------------------------
  39. ExamineSemaphore (SemaphoreHandle : LONGINT; VAR SemaphoreValue : WORD;
  40.                   VAR OpenCount : WORD) : WORD;
  41.  
  42.   Returns the current value and open count for a semaphore.
  43. --------------------------------------------------------------------------------
  44. GetLockMode : WORD;
  45.  
  46.   Returns the current lock mode.
  47. --------------------------------------------------------------------------------
  48. LockFileSet (TimeOut : WORD) : WORD;
  49.  
  50.   Attempts to lock all files in the log table of the requesting workstation.
  51. --------------------------------------------------------------------------------
  52. LockLogicalRecordSet (LockDirective : BYTE; TimeOut : WORD) : WORD;
  53.  
  54.   Attempts to lock all logical records in the log table of the requesting
  55.   workstation.
  56. --------------------------------------------------------------------------------
  57. LockPhysicalRecordSet (LockDirective : BYTE; TimeOut : WORD) : WORD;
  58.  
  59.   Attempts to lock all Physical records in the log table of the requesting
  60.   workstation.
  61. --------------------------------------------------------------------------------
  62. LogFile (FileName : PathNameType; LockDirective : BYTE; TimeOut : WORD) : WORD;
  63.  
  64.   Logs a file into the log table of the requesting workstation and,
  65.   optionally, locks the file.
  66. --------------------------------------------------------------------------------
  67. LogLogicalRecord (LogicalRecordName : LogicalRecordNameType;
  68.                   LockDirective : BYTE; TimeOut : WORD) : WORD;
  69.  
  70.   Logs a logical record string into the log table of the requesting workstation
  71.   and, optionally, locks the record.
  72. --------------------------------------------------------------------------------
  73. LogPhysicalRecord (FileHandle : WORD; RecordOffset, RecordLength : LONGINT;
  74.                    LockDirective : BYTE; TimeOut : WORD) : WORD;
  75.  
  76.   Logs a physical record into the log table of the requesting workstation
  77.   and, optionally, locks the record.
  78. --------------------------------------------------------------------------------
  79. OpenSemaphore (SemaphoreName : SemaphoreNameType; InitialValue : WORD;
  80.                VAR SemaphoreHandle : LONGINT; VAR OpenCount : WORD) : WORD;
  81.  
  82.   Opens the specified semaphore or creates it if it does not exist.
  83. --------------------------------------------------------------------------------
  84. ReleaseFile (FileName : PathNameType) : WORD;
  85.  
  86.   Unlocks the specified file in the log table of the requesting workstation but
  87.   does not delete the file.
  88. --------------------------------------------------------------------------------
  89. ReleaseFileSet
  90.  
  91.   Unlocks all files currently locked in the log table of the requesting
  92.   workstation but does not delete them from the table.
  93. --------------------------------------------------------------------------------
  94. ReleaseLogicalRecord (LogicalRecordName : LogicalRecordNameType) : WORD;
  95.  
  96.   Unlocks a logical record in the log table of the requesting workstation but
  97.   does not remove the record from the table.
  98. --------------------------------------------------------------------------------
  99. ReleaseLogicalRecordSet
  100.  
  101.   Unlocks all logical records currently locked in the log table of the
  102.   requesting workstation but does not remove them from the log table.
  103. --------------------------------------------------------------------------------
  104. ReleasePhysicalRecord (FileHandle : WORD; RecordOffset,
  105.                        RecordLength : LONGINT) : WORD;
  106.  
  107.   Unlocks a physical record in the log table of the requesting workstation but
  108.   does not remove the record from the table.
  109. --------------------------------------------------------------------------------
  110. ReleasePhysicallRecordSet
  111.  
  112.   Unlocks all physical records currently locked in the log table of the
  113.   requesting workstation but does not remove them from the log table.
  114. --------------------------------------------------------------------------------
  115. SetLockMode (LockMode : BYTE) : WORD;
  116.  
  117.   Sets the lock mode.
  118. --------------------------------------------------------------------------------
  119. SignalSemaphore (SemaphoreHandle : LONGINT) : WORD;
  120.  
  121.   Increments the value of a semaphore.
  122. --------------------------------------------------------------------------------
  123. WaitOnSemaphore (SemaphoreHandle : LONGINT; TimeOut : WORD) : WORD;
  124.  
  125.   Decrements the value of a semaphore.
  126. ------------------------------------------------------------------------------
  127.